%global __find_debuginfo_files %nil
%add_debuginfo_skiplist %_prefix/*
%add_verify_elf_skiplist %_prefix/*
%brp_strip_none %_prefix/*
%add_findreq_skiplist %_prefix/*

Name: cpio
Version: 2.13
Release: alt1

Summary: The GNU cpio program
License: GPLv3+
Group: Archiving/Backup

Requires: /lib64/ld-linux-loongarch-lp64d.so.1
Requires: libc.so.6(GLIBC_2.36)(64bit)

%description
The GNU cpio program

%prep
:

%build
:

%install
mkdir -p %buildroot
cd %clfs_topdir/build/%{name}-pkg && \
echo \
usr/bin/cpio \
usr/share/info/cpio.info \
usr/share/man/man1/cpio.1 \
usr/share/locale/da/LC_MESSAGES/cpio.mo \
usr/share/locale/pt/LC_MESSAGES/cpio.mo \
usr/share/locale/vi/LC_MESSAGES/cpio.mo \
usr/share/locale/id/LC_MESSAGES/cpio.mo \
usr/share/locale/sr/LC_MESSAGES/cpio.mo \
usr/share/locale/ja/LC_MESSAGES/cpio.mo \
usr/share/locale/zh_TW/LC_MESSAGES/cpio.mo \
usr/share/locale/gl/LC_MESSAGES/cpio.mo \
usr/share/locale/tr/LC_MESSAGES/cpio.mo \
usr/share/locale/it/LC_MESSAGES/cpio.mo \
usr/share/locale/zh_CN/LC_MESSAGES/cpio.mo \
usr/share/locale/nl/LC_MESSAGES/cpio.mo \
usr/share/locale/pl/LC_MESSAGES/cpio.mo \
usr/share/locale/hr/LC_MESSAGES/cpio.mo \
usr/share/locale/ko/LC_MESSAGES/cpio.mo \
usr/share/locale/ga/LC_MESSAGES/cpio.mo \
usr/share/locale/es/LC_MESSAGES/cpio.mo \
usr/share/locale/fr/LC_MESSAGES/cpio.mo \
usr/share/locale/de/LC_MESSAGES/cpio.mo \
usr/share/locale/uk/LC_MESSAGES/cpio.mo \
usr/share/locale/pt_BR/LC_MESSAGES/cpio.mo \
usr/share/locale/ru/LC_MESSAGES/cpio.mo \
usr/share/locale/sv/LC_MESSAGES/cpio.mo \
usr/share/locale/fi/LC_MESSAGES/cpio.mo \
usr/share/locale/ro/LC_MESSAGES/cpio.mo \
usr/share/locale/hu/LC_MESSAGES/cpio.mo \
%nil | \
tr ' ' '\n' |
cpio -p -u -d %buildroot

%files
/usr/bin/cpio
/usr/share/info/cpio.info*
/usr/share/man/man1/cpio.1*
/usr/share/locale/da/LC_MESSAGES/cpio.mo
/usr/share/locale/pt/LC_MESSAGES/cpio.mo
/usr/share/locale/vi/LC_MESSAGES/cpio.mo
/usr/share/locale/id/LC_MESSAGES/cpio.mo
/usr/share/locale/sr/LC_MESSAGES/cpio.mo
/usr/share/locale/ja/LC_MESSAGES/cpio.mo
/usr/share/locale/zh_TW/LC_MESSAGES/cpio.mo
/usr/share/locale/gl/LC_MESSAGES/cpio.mo
/usr/share/locale/tr/LC_MESSAGES/cpio.mo
/usr/share/locale/it/LC_MESSAGES/cpio.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cpio.mo
/usr/share/locale/nl/LC_MESSAGES/cpio.mo
/usr/share/locale/pl/LC_MESSAGES/cpio.mo
/usr/share/locale/hr/LC_MESSAGES/cpio.mo
/usr/share/locale/ko/LC_MESSAGES/cpio.mo
/usr/share/locale/ga/LC_MESSAGES/cpio.mo
/usr/share/locale/es/LC_MESSAGES/cpio.mo
/usr/share/locale/fr/LC_MESSAGES/cpio.mo
/usr/share/locale/de/LC_MESSAGES/cpio.mo
/usr/share/locale/uk/LC_MESSAGES/cpio.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cpio.mo
/usr/share/locale/ru/LC_MESSAGES/cpio.mo
/usr/share/locale/sv/LC_MESSAGES/cpio.mo
/usr/share/locale/fi/LC_MESSAGES/cpio.mo
/usr/share/locale/ro/LC_MESSAGES/cpio.mo
/usr/share/locale/hu/LC_MESSAGES/cpio.mo
